package org.travel.app.entity.spots;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * @author nmm
 * @date 2024-12-2024/12/29
 * @deriction njm......
 */
@Data
public class SpotsShopTicket {
    /**
     * 门票id
     */
    private Integer spotsTicketId;
    /**
     * 景点
     */
    private String spotsName;

    /**
     * 景点地址
     */
    private String spotsAddress;
    /**
     * 门票类型名
     */
    private String typeName;

    /**
     * 门票类型id
     */
    private  Integer ticketTypesId;
    /**
     * 门票价格
     */
    private BigDecimal ticketPrice;
    /**
     * 门票开始有效期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate validityStart;
    /**
     * 门票失效日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate validityEnd;
}